<h1>Submit a new photo</h1>

<%= error_messages_for "photo" %>

<%= start_form_tag nil, :multipart=>true %>
<div id="new_photo">
  <label>Photo</label>
  <%= file_field_tag "file" %>

  <label>Title</label>
  <%= text_field "photo", "title", :maxlength=>80 %>

  <label>Description</label>
  <%= text_area "photo", "description", :cols=>48, :rows=>6 %>

  <label>Camera</label>
  <%= text_field "photo", "camera" %>

  <label>Lens</label>
  <%= text_field "photo", "lens" %>
</div>
  <label>&nbsp;</label>
  <%= submit_tag "Upload" %>&nbsp;&nbsp;&nbsp;&nbsp;
  <%= link_to "Cancel", :controller=>"gallery", :action=>"list" %>

<%= end_form_tag %>
